/*
 * BanBu_MagicWordsViewController
 * @description 本文件提供对话中魔法文字的ViewController
 * @package
 * @author 		***
 * @copyright
 * @version 		1.0
 * @description 本文件提供对话中魔法文字的ViewController
 */

#import <UIKit/UIKit.h>
#import "BanBu_NavButton.h"
#import "BanBuRequestDelegate.h"
@class SCGIFImageView;

@class BanBu_ChatViewController;

@interface BanBu_MagicWordsViewController : UIViewController<UITextViewDelegate,BanBuRequestDelegate,UIWebViewDelegate,UIActionSheetDelegate,UIWebViewDelegate>

@property (assign, nonatomic) BanBu_ChatViewController * appChatController;
@property (retain, nonatomic) BanBu_NavButton * sendButton;     //发送按钮

@property (assign, nonatomic) BOOL downloadCorrect; //已下载完整魔法文字html
@property (copy, nonatomic)   NSString * contentStr;   //预览时返回的html

@property (retain, nonatomic) IBOutlet UIControl *tapView;
- (IBAction)hiddenOrView:(UIControl *)sender;

@property (retain, nonatomic) IBOutlet UITextView *inputView;   //文本输入框



@property (retain, nonatomic) IBOutlet UIButton *decorateButton;//装饰按钮

//显示装饰素材
- (IBAction)decorattingAction:(UIButton *)sender;

@property (retain, nonatomic) IBOutlet UIButton *previewButton; //预览按钮

//预览
- (IBAction)previewAction:(UIButton *)sender;

#pragma mark - 装饰图片
@property (retain, nonatomic) IBOutlet UIView *decorateView;    //装饰的Content
@property (retain, nonatomic) IBOutlet UIView *scrollView;


@property (retain, nonatomic) IBOutlet UIScrollView *smallPictureScrollView;//小图片

@property (retain, nonatomic) IBOutlet UIScrollView *bigPictureScrollView;  //大图片


#pragma mark - 显示结果
@property (retain, nonatomic) IBOutlet UIView *resultView;       //展示结果的View
@property (retain, nonatomic) IBOutlet UIWebView *magicWordsView;//内容显示
@property (retain, nonatomic) IBOutlet UIImageView *bkView;      //气泡

- (IBAction)setKeyboardDown:(UIControl *)sender;


@property (retain, nonatomic) IBOutlet UIPageControl *pageControl;

#pragma mark - 查看大图
@property (copy , nonatomic) NSString * selectedIdStr;  //正在查看的素材的id
@property (retain, nonatomic) IBOutlet SCGIFImageView *showImageView;//要显示的素材

@property (retain, nonatomic) IBOutlet UIView *showImageContent;    //查看大图时

//取消查看的素材
- (IBAction)cancelButton:(UIButton *)sender;

//添加本次查看的素材
- (IBAction)addButton:(UIButton *)sender;

//下载loading
@property (retain, nonatomic) IBOutlet UIActivityIndicatorView *activityIndicator;

@property (retain, nonatomic) IBOutlet UIButton *cancelButton;  //取消按钮
@property (retain, nonatomic) IBOutlet UIButton *addButton;     //添加按钮

//检查能否添加大图
-(BOOL)checkAddBig;

@end
